package com.jsnkj.basic.bean;

import java.io.Serializable;

public class AdvertisementBean implements Serializable {
    private int ad_config_id;
    //应用id
    private String appid;

    //信息流广告开关
    private boolean flow_switch;
    //信息流广告id
    private String flow_pos_id;

    //开屏广告开关
    private boolean open_switch;
    //开屏广告id
    private String open_pos_id;

    //插屏广告开关
    private boolean insert_switch;
    //插屏广告id
    private String insert_pos_id;

    //全屏广告开关
    private boolean full_switch;
    //信息流广告id
    private String full_pos_id;


    //短视频广告开关
    private boolean short_video_switch;
    //短视频广告id
    private String short_video_id;


    //激励广告开关
    private boolean exc_switch;
    //激励广告id
    private String exc_pos_id;
    //激励广告时间
    private Integer exc_free_num;

    //banner广告开关
    private boolean banner_switch;
    //banner广告id
    private String banner_pos_id;

    public static AdvertisementBean getInstance(
            int adConfigId, String appid, boolean flowSwitch, String flowPosId, boolean openSwitch,
            String openPosId, boolean insertSwitch, String insertPosId, boolean fullSwitch, String fullPosId,
            boolean excSwitch, String excPosId, Integer excFreeNum, boolean bannerSwitch, String bannerPosId,
            boolean short_video_switch, String short_video_id
    ) {

        AdvertisementBean bean = new AdvertisementBean();
        bean.ad_config_id = adConfigId;
        bean.appid = appid;
        bean.flow_switch = flowSwitch;
        bean.flow_pos_id = flowPosId;
        bean.open_switch = openSwitch;
        bean.open_pos_id = openPosId;
        bean.insert_switch = insertSwitch;
        bean.insert_pos_id = insertPosId;
        bean.full_switch = fullSwitch;
        bean.full_pos_id = fullPosId;
        bean.exc_switch = excSwitch;
        bean.exc_pos_id = excPosId;
        bean.exc_free_num = excFreeNum;
        bean.banner_switch = bannerSwitch;
        bean.banner_pos_id = bannerPosId;
        bean.short_video_switch = short_video_switch;
        bean.short_video_id = short_video_id;

        return bean;
    }


    public boolean isShort_video_switch() {
        return short_video_switch;
    }

    public void setShort_video_switch(boolean short_video_switch) {
        this.short_video_switch = short_video_switch;
    }

    public String getShort_video_id() {
        return short_video_id;
    }

    public void setShort_video_id(String short_video_id) {
        this.short_video_id = short_video_id;
    }

    public boolean isFlow_switch() {
        return flow_switch;
    }

    public boolean isOpen_switch() {
        return open_switch;
    }

    public boolean isInsert_switch() {
        return insert_switch;
    }

    public boolean isFull_switch() {
        return full_switch;
    }

    public boolean isExc_switch() {
        return exc_switch;
    }

    public boolean isBanner_switch() {
        return banner_switch;
    }

    public void setBanner_switch(boolean banner_switch) {
        this.banner_switch = banner_switch;
    }

    public String getBanner_pos_id() {
        return banner_pos_id;
    }

    public void setBanner_pos_id(String banner_pos_id) {
        this.banner_pos_id = banner_pos_id;
    }

    public int getAd_config_id() {
        return ad_config_id;
    }

    public void setAd_config_id(int ad_config_id) {
        this.ad_config_id = ad_config_id;
    }

    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public boolean getFlow_switch() {
        return flow_switch;
    }

    public void setFlow_switch(boolean flow_switch) {
        this.flow_switch = flow_switch;
    }

    public String getFlow_pos_id() {
        return flow_pos_id;
    }

    public void setFlow_pos_id(String flow_pos_id) {
        this.flow_pos_id = flow_pos_id;
    }

    public boolean getOpen_switch() {
        return open_switch;
    }

    public void setOpen_switch(boolean open_switch) {
        this.open_switch = open_switch;
    }

    public String getOpen_pos_id() {
        return open_pos_id;
    }

    public void setOpen_pos_id(String open_pos_id) {
        this.open_pos_id = open_pos_id;
    }

    public boolean getInsert_switch() {
        return insert_switch;
    }

    public void setInsert_switch(boolean insert_switch) {
        this.insert_switch = insert_switch;
    }

    public String getInsert_pos_id() {
        return insert_pos_id;
    }

    public void setInsert_pos_id(String insert_pos_id) {
        this.insert_pos_id = insert_pos_id;
    }

    public boolean getFull_switch() {
        return full_switch;
    }

    public void setFull_switch(boolean full_switch) {
        this.full_switch = full_switch;
    }

    public String getFull_pos_id() {
        return full_pos_id;
    }

    public void setFull_pos_id(String full_pos_id) {
        this.full_pos_id = full_pos_id;
    }

    public boolean getExc_switch() {
        return exc_switch;
    }

    public void setExc_switch(boolean exc_switch) {
        this.exc_switch = exc_switch;
    }

    public String getExc_pos_id() {
        return exc_pos_id;
    }

    public void setExc_pos_id(String exc_pos_id) {
        this.exc_pos_id = exc_pos_id;
    }

    public Integer getExc_free_num() {
        return exc_free_num;
    }

    public void setExc_free_num(Integer exc_free_num) {
        this.exc_free_num = exc_free_num;
    }


    @Override
    public String toString() {
        return "AdverBean{" +
                "ad_config_id=" + ad_config_id +
                ", appid='" + appid + '\'' +
                ", flow_switch=" + flow_switch +
                ", flow_pos_id='" + flow_pos_id + '\'' +
                ", open_switch=" + open_switch +
                ", open_pos_id='" + open_pos_id + '\'' +
                ", insert_switch=" + insert_switch +
                ", insert_pos_id='" + insert_pos_id + '\'' +
                ", full_switch=" + full_switch +
                ", full_pos_id='" + full_pos_id + '\'' +
                ", exc_switch=" + exc_switch +
                ", exc_pos_id='" + exc_pos_id + '\'' +
                ", exc_switch=" + banner_switch +
                ", exc_pos_id='" + banner_pos_id + '\'' +
                ", exc_free_num=" + exc_free_num +
                '}';
    }

}
